home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000128_icon-group-sender _Fri Aug 18 16:56:34 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 18 Aug 1995 13:07:01 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Fri, 18 Aug 1995 16:56:34 GMT
  4. From: tydeman@netcom.com (Fred Tydeman)
  5. Message-Id: <tydemanDDIn2A.A06@netcom.com>
  6. Organization: Tydeman Consulting
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: SNOBOL4 and printing on same line
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11.  
  12. The SNOBOL4 Programming Language, second edition ("green book") on
  13. page 167-168 talk about output associations and carriage control.
  14. In looking at a Fortan manual, if the first character printed on a
  15. line is a '1', then a new page eject is done before printing.  
  16. A '0' causes double spacing, a '+' suppresses spacing before
  17. printing, eg, prints two successive records on the same line.
  18. Anything else causes a single space before printing.
  19.  
  20. So you need to print a '+' as the first character on a line to
  21. print the next record on the same line.  
  22.  
  23. In SNOBOL4 do
  24.   OUTPUT('OUTPUT',6,'(1H+,132A1)')
  25. in place of
  26.   OUTPUT('OUTPUT',6,'(1X,132A1)')
  27. -- 
  28. Fred Tydeman      +1 (512) 255-8696    Austin, Texas
  29. Computer Consultant               tydeman@netcom.com
  30. C/C++ Training         NCEG/FPCE and numeric Testing
  31. Voting Member x3j11 ( ANSI "C" standards committee )
  32. Numerical Editor of the Journal of C Language Translation
  33.